<extend name="./public/operateMain.html" />
<block name="editArea">
<div class="panel panel-primary">
	<div class="panel-heading">
		<span class="glyphicon glyphicon-th-list">&nbsp;</span>
		<b>合同详情</b>
		<a href="{:U('Hetong/index')}">
			<span class="glyphicon glyphicon-remove"
				style="float: right; color: white"></span>
		</a>
	</div>
	<form action="__URL__/edit" method="post">
		<input type="hidden" name="id" value="{$Rs.id}">
		<table class="table table-condensed table-hover">
			<tr>
				<td>
					<label for='bianhao_input' class='control-label x85'>合同编号:</label>
					<input type='text' id='bianhao' name='bianhao' size='20'
						value='{$Rs.bianhao}'>
				</td>
				<td>
					<label for='dqrq_input' class='control-label x85'>到期日期:</label>
					<input type='text' data-toggle='datepicker' id='dqrq' name='dqrq'
						size='20' value='{$Rs.dqrq|substr=###,0,10}'>
				</td>
			</tr>
			<tr>
				<td>
					<label for='title_input' class='control-label x85'>合同名称:</label>
					<input type='text' id='title' name='title' data-rule='required;'
						size='20' value='{$Rs.title}'>
				</td>
				<td>
					<label for='jcid_input' class='control-label x85'>客户ID:</label>
					<input type='text' id='jcid' name='jcid' size='20'
						data-toggle='lookup'
						data-url='__MODULE__/public/cname/navTabId/{:CONTROLLER_NAME}'
						value='{$Rs.jcid}'>
				</td>
			</tr>
			<tr>
				<td>
					<label for='jcname_input' class='control-label x85'>客户名称:</label>
					<input type='text' id='jcname' name='jcname' size='20'
						data-toggle='lookup'
						data-url='__MODULE__/public/cname/navTabId/{:CONTROLLER_NAME}'
						value='{$Rs.jcname}'>
				</td>
				<td>
					<label for='xingming_input' class='control-label x85'>联系人:</label>
					<input type='text' id='xingming' name='xingming' size='20'
						value='{$Rs.xingming}'>
				</td>
			</tr>
			<tr>
				<td>
					<label for='dianhua_input' class='control-label x85'>联系电话:</label>
					<input type='text' id='dianhua' name='dianhua' size='20'
						value='{$Rs.dianhua}'>
				</td>
				<td>
					<label for='jine_input' class='control-label x85'>合同金额:</label>
					<input type='text' id='jine' name='jine'
						data-rule='required;doubles' size='20' value='{$Rs.jine}'>
				</td>
			</tr>
			<tr>
				<td>
					<label for='name_input' class='control-label x85'>业务员:</label>
					<input type='text' id='name' name='name' size='20'
						data-toggle='lookup'
						data-url='__MODULE__/public/htuser/navTabId/{:CONTROLLER_NAME}'
						value='{$Rs.name}'>
				</td>
			</tr>
			<tr></tr>
			<tr></tr>
			<tr>
				<td colspan=2>
					<label for='beizhu_input' class='control-label x85'>合同详情:</label>
					<div style='display: inline-block; vertical-align: middle;'>
						<textarea
							style="display: inline-block; height: 100%; vertical-align: middle;"
							cols='65' rows='5' name='beizhu'>{$Rs.beizhu}</textarea>
					</div>
				</td>
			</tr>
		</table>
		<div class="row">
			<button type="submit"
				class="col-md-1 col-md-offset-8 btn btn-sm btn-primary"
				data-icon="save">保存</button>
			<a href="{:U('Hetong/index')}" type="button"
				class="col-md-1 col-md-offset-1 btn btn-sm btn-default"
				data-icon="close">取消</a>
		</div>
	</form>
	<br />
</div>
</block>